import sys

__author__ = 'gpu'

import cv2




def show_img(img):
    print(sys.argv)
    if ("_jb_unittest_runner" in sys.argv[0]):
        cv2.imshow('', img)
        cv2.waitKey(0)
        return
    if len(sys.argv[1].split("TestCase:")) == 2:
        cv2.imshow('', img)
        cv2.waitKey(0)
